package src;
import javax.swing.JFrame;

public class Monitor {

	public static void main(String[] args){
		/**
		 * Each train monitor
		 */
		JFrame monitor = new JFrame();
		monitor.setSize(1200, 700);
		monitor.setTitle("Train monitor");
		monitor.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		monitor.setVisible(true);
		
		DrawRails test = new DrawRails();
		Train train = new Train();
		monitor.add(test);
		monitor.add(train);
	}
}